﻿using System.ComponentModel.DataAnnotations;

namespace JT.Domain.TimeLine
{
    public class TimeLine
    {
        [Key]
        public int Id { get; set; }
        [Required(ErrorMessage = "不能为空!")]
        [Display(Name = "年份")]
        public int YearId { get; set; }

        [Required(ErrorMessage = "请选择一个月份")]
        [Display(Name = "月份")]
        public Month? Months { get; set; }

        [Required(ErrorMessage = "不能为空!")]
        [Display(Name = "事件")]
        public string Content { get; set; }

        [Display(Name = "年份")]
        public Year YearNavigation { get; set; }
    }
}
